/**
 * Copyright (c) 2015—2017 Zerone.Co.Ltd. All rights reserved.
 */
package com.zerone.facade.merchant.order;

import com.acooly.core.common.facade.OrderBase;
import com.acooly.core.utils.ToString;
import com.zerone.facade.merchant.enums.PayTrustsEnum;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author glassescat <a href="">零一零一科技</a>
 */
@Setter
@Getter
public class MerchantPayQueryOrder extends OrderBase {
	
	private static final long serialVersionUID = 8817071215530541480L;
	
	/** 商户ID */
	@NotBlank(message = "[商户ID]不能为空")
	@Size(min = 20, max = 20, message = "[商户ID]长度必须为{max}")
	private String merchantId;
	
	/** 支付机构 */
	@NotNull(message = "[支付机构]不能为空")
	private PayTrustsEnum payTrusts;
	
	@Override
	public String toString() {
		return ToString.toString(this);
	}
}
